<extend name="Public/base" />

<block name="header">
<include file="Public/header" />
<link href="__PUBLIC__/Admin/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="__PUBLIC__/Admin/js/html5shiv.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/Admin/date/daterangepicker-bs3.css"/>
</block>

<block name="footer">
	<include file="Public/footer" />
	<script>
		$("#bcid").change(function() {
			var val = $(this).val();
			var sale = $('#bsale').val();
			switch(val) {
				<volist name="classm" id="vo">
				case '{$vo['cid']}':
				var money = {$vo['cmoney']}*sale;
				$('#bmoney').val(money);
				break;
				</volist>
			}
		});
		$("#bsale").change(function() {
			var sale = $(this).val();
			var val = $('#bcid').val();
			switch(val) {
				<volist name="classm" id="vo">
				case '{$vo['cid']}':
				var money = {$vo['cmoney']}*sale;
				$('#bmoney').val(money);
				break;
				</volist>
			}
		});
	</script>
</block>

<block name="main">
	<div class="container-fluid">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">缴费</h1>
			</div>
			<!-- /.col-lg-12 -->
		</div>

		<div class="row">
			<div class="col-lg-12">
				<!--
				<div class="panel panel-default">
					<div class="panel-heading"> Basic Form Elements </div>
				</div>
				-->
				<div class="panel-body">
					<div class="row">
						<div class="col-lg-6">
							<form action="" method="post">
								<input type="hidden" name="bsid" value="{$info['id']}" />
								<div class="form-group">
									<label>学员</label>
									<label>{$info['name']}</label>
								</div>
								<div class="form-group">
									<label>班级</label>
									<select name="bcid" id="bcid" class="form-control">
										<option value="">--选择班级--</option>
										<volist name="class" id="class">
										<option value="{$class['cid']}">{$class['cname']}</option>
										</volist>
									</select>
								</div>
								<div class="form-group">
									<label>折扣</label>
									<select name="bsale" id="bsale" class="form-control">
										<option value="1">无折扣</option>
										<option value="0.9">9折</option>
										<option value="0.8">8折</option>
										<option value="0.7">7折</option>
										<option value="0.6">6折</option>
									</select>
								</div>
								<div class="form-group">
									<label>缴费</label>
									<input type="text" name="bmoney" id="bmoney" class="form-control" value=""/>
								</div>
								<button type="submit" class="btn btn-default">提交</button>
							</form>
						</div>
					</div>
				</div>
			</div>
			<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
	</div>
</block>
